import { useLocalStorage } from "@vueuse/core";

const TokenKey = "admin-token";

//设置LocalStorage中存储的Token值
export function SetTokenLocalStorage(token) {
  //设置值时,函数直接调用方法
  useLocalStorage(TokenKey, token);
}

//获取LocalStorage中存储的Token值
export function GetTokenLocalStorage() {
  //读取值时，函数要返回值
  return useLocalStorage(TokenKey);
}
